#ifndef SERVER_H
#define SERVER_H
#include<QTcpServer>
#include"Client.h"
#include<QList>
#include<QSqlDatabase>
#include<QSqlQuery>

class Server : public QTcpServer{

    Q_OBJECT

public:
    Server(QObject *parent = 0, int port = 0);
    ~Server();
    QList<Client *> ClientList;

signals:
    void updateServerUI(QString);

private slots:
    void updateClient(QString);
    void slotdisconnect(int);
    void slotClose();

protected:
    void incomingConnection(qintptr);
};



#endif // SERVER_H
